package com.hq.ims.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hq.ims.data.entityenum.EnumReceiveStatus;
import com.hq.ims.data.vo.BusiIndustryAssignMapstruct;
import com.hq.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;

/**
* @author 蒋柏平
* @since 20241025
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Alias("BusiIndustryAssign")
@TableName(value = "busi_industry_assign")
@ApiModel(value = "产业标记指派表", description = "产业标记指派表")
public class BusiIndustryAssign extends BaseModel<BusiIndustryAssign> implements Serializable {

    @ApiModelProperty(value = "产业标记指派ID")
    @TableId(value = "busi_industry_assign_id",type = IdType.ASSIGN_UUID)
    private String busiIndustryAssignId;

    @ApiModelProperty(value = "产业标记ID")
    @TableField(value = "industry_id")
    private String industryId;

    @ApiModelProperty(value = "产业标记名称")
    @TableField(value = "industry_name")
    private String industryName;

    @ApiModelProperty(value = "经营信息管理ID")
    @TableField(value = "busi_info_id")
    private String busiInfoId;

    @ApiModelProperty(value = "接收状态")
    @TableField(value = "receive_status")
    private EnumReceiveStatus receiveStatus;

    public BusiIndustryAssignMapstruct.BusiIndustryAssignRowAuthVo auth(){
        BusiIndustryAssignMapstruct.BusiIndustryAssignRowAuthVo auth = new BusiIndustryAssignMapstruct.BusiIndustryAssignRowAuthVo(this);
        return auth;
    }

}
